import {
  defineStore
} from 'pinia';



export const useCategoryStore = defineStore('category', {
  state: () => {
    return {
      current_level_one: '', // 一级菜单选中项
      current_level_two: '', // 二级菜单选中项
    };
  },
  actions: {
    setLevelOneMenu(id) {
      this.current_level_one = id
    },
    setLevelTwoMenu(id) {
      this.current_level_two = id
    }
  },
});